# !/usr/bin/env python
# -*- coding:utf-8 -*-

import re

Template = """
    that.setData({
    eee:sdfsd,
    sdfsdf: {},
    'test': (44+32),
    sfsdfsdfs,
} 
);

    let aa = 123;
  this.ses = (sdf+ {} )
"""


class SetData():


    '''
    vue指令转小程序属性
    '''
    def __init__(self,template = Template, ):
        """
        初始化
        """
        self.template = template
    
    def run(self,):
        '''
        执行方法
        '''
        pass

    def test(self):
        '''
        测试
        '''
        print(self.template)
        # print(re.)
        print(re.search(r"[\w$]*\.setData\(\{[\s\S(?<!\(\{)]*(?=\}\s*\n?\)\;?\s*\n?)", self.template).group())
        


if __name__ == "__main__":
    
    setData = SetData(Template,)
    setData.test()
    
